package com.chen.hotel.Service.impl;

import com.chen.hotel.Service.ImageService;
import com.chen.hotel.dao.ImagesDao;
import com.chen.hotel.domain.Images;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ImageServiceImpl implements ImageService {

    @Autowired
    private ImagesDao imagesDao;

    @Override
    public Images create(Images images) {
        return this.imagesDao.save(images);
    }

    @Override
    public void delete(Integer id) {
        this.imagesDao.deleteById(id);
    }
}
